export const isEmpty = <T>(origin: T): boolean => {
  if (typeof origin === 'string' && origin === '') {
    return true
  }
  return origin === null || origin === undefined
}

// 判断是否在白名单中
export const isWhiteList = (whiteList: string[], path: string): boolean => {
  return whiteList.some((item) => {
    return path.indexOf(item) > -1
  })
}
